package com.food.admin.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.time.LocalDate;
import java.util.Date;

@Data
@ApiModel("分页条件查询商铺注册列表参数对象")
public class StoreRegisterListForm {
    @NotNull(message = "每页条数不为空")
    @Min(value = 1,message = "页码必须为数字并大于等于1")
    @ApiModelProperty("页码")
    private long pageIndex;


    @Min(value = 1,message = "每页条数必须为数字并大于等于1")
    @NotNull(message = "每页条数不为空")
    @ApiModelProperty("每页条数")
    private long pageSize;

    @ApiModelProperty("起始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    @Max(3)
    @Min(0)
//    @Pattern(regexp = "^$|[0,2]",message = "状态码必须为0,1,2")
    @ApiModelProperty("注册审核状态0待审核1审核通过2审核不通过3商家撤销审核")
    private Integer stateId;
}
